document.write('<iframe class="zanpiancms-play-iframe" id="buffer" src="' + zanpiancms_player.adurl + '" width="100%" height="100%" frameborder="0" scrolling="no" style="position:absolute;z-index:9;display:none"></iframe>');
if (zanpiancms_player.apiurl) {
    document.write('<iframe class="zanpiancms-play-iframe" src="' + zanpiancms_player.apiurl + zanpiancms_player.url + '" width="100%" height="100%" frameborder="0" scrolling="no" allowfullscreen="true"></iframe>');

} else {
    document.write('<iframe class="zanpiancms-play-iframe" src="' + zanpiancms_player.player + 'player/dplayer.html" allowFullscreen="true" width="100%" height="100%"  frameborder="0" scrolling="no"></iframe>');
}
ads_show();
function ads_show() {
    try {
        if (zanpiancms_player.adurl != null && zanpiancms_player.adtime > 0) {
            document.getElementById("buffer").style.display = "block";
            setTimeout("document.getElementById(\"buffer\").style.display=\"none\"", zanpiancms_player.adtime * 1000);
        } else {
            setTimeout(function () { ads_show(); }, 200);
        }
    } catch (e) { }
}